<% if ($page) { %>
<div class="containercontent">
<div class="pageturning">
    <a class="btn" href="<% echo $this->url($this->route, array('page' => $page->first)); %>"><% l 'html_page_first'%></a>

    <% if (isset($page->previous)) { %>
    <a class="btn" href="<% echo $this->url($this->route, array('page' => $page->previous)); %>"><% l 'html_page_previous'%></a>
    <% } %>

    <% foreach ($page->pagesInRange as $p) { %>
    <a href="<% echo $this->url($this->route, array('page' => $p)); %>" class="btn <% if ($p == $page->current){echo 'selected';} %>"><% echo $p; %></a>
    <% } %>

    <% if (isset($page->next)) { %>
    <a class="btn" href="<% echo $this->url($this->route, array('page' => $page->next)); %>"><% l 'html_page_next'%></a>
    <% } %>

    <a class="btn" href="<% echo $this->url($this->route, array('page' => $page->last)); %>"><% l 'html_page_last'%></a>

    <span class="total"><% l 'html_page_pagenum'%> : <% echo $page->pageCount %></span>
    <span class="total"><% l 'html_page_total'%> : <% echo $page->totalItemCount %></span>
</div>
</div>
<% } %>